﻿using System;
using System.Web.UI;
using MyWeb.Business;

namespace MyWeb.TrangChinh.UC
{
    public partial class ucSlideShow : UserControl
    {
        private readonly AdvertiseService _advertiseService = new AdvertiseService();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindRepeater();
            }
        }

        private void BindRepeater()
        {
            rptSlide.DataSource = _advertiseService.Advertise_GetByPositionStatus(1,0);
            rptSlide.DataBind();
        }
    }
}